import { ScrollView, StyleSheet, Text } from "react-native";

const styles = StyleSheet.create({
  container: {
    backgroundColor: 'white',
    borderTopLeftRadius: 8,
    borderTopRightRadius: 8,
    padding: 16
  },
});

const INDICES = (new Array(100)).fill(0).map((_, i) => i);

export default function ContentList() {
  return (
    <ScrollView style={styles.container} onScroll={(e) => console.log("scrolling", e.nativeEvent.contentOffset.y)}>
      {INDICES.map((i) => (<Text key={i}>{i}</Text>))}
    </ScrollView>
  );
}
